const arr1: Array<number> = [1,3,5];

const arr2: number[] = [1,3,5];


function sum(...args: Array<number>) {
    return args.reduce((prev: number, cur: number) => {
        return prev + cur;
    }, 0);
}


sum(1,3,4,5);
// sum(1,3,4,5,'asd');


export {};